<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ include file="/sys/include/header.jsp" %>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<head>
<title>维护人员信息详情</title>
<style type="text/css">
body{
	margin:10px;  
	font-size:0.9em;
}
a{
	color:#F00;
}
.STYLE1 {color: #FF0000}
</style>
<link rel="stylesheet" type="text/css" href="sys/extjs/css/ext-all.css">
<script type="text/javascript" src="sys/extjs/js/ext-base.js"></script>
<script type="text/javascript" src="sys/extjs/js/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="sys/extjs/css/tables-example.css">	
<link href="sys/style01/css/table.css" rel="stylesheet" type="text/css" /> 
<link rel="stylesheet" href="sys/style01/css/tab-view.css" type="text/css" media="screen">
<link href="sys/style01/date/css/banzu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="sys/style01/date/include/js/calendar.js"></script>
<script type="text/javascript" src="sys/style01/date/include/js/checkdate.js"></script>
<script type="text/javascript" src="sys/style01/date/include/js/calendar-zh.js"></script>
<script type="text/javascript" src="sys/style01/date/include/js/calendar-setup.js"></script>
</head>
<script type="text/javascript"> 
	var xmlhttp;
	var areaNow;
	var oLogin = true;
	function selectArea(areaCode){
		var url = "";
		if(areaCode==""){
			return;
		}
			 
		xmlHttp=createXml();
		if (xmlHttp==null) {
	    	alert ("您的浏览器不支持AJAX！");
	    	return;
	    }
	    	   
	  	url="hr/ajaxGetZhuanquList.action?queryZhuanqu="+areaCode+"&sid="+Math.random();
	  	url = encodeURI(url);   
		url = encodeURI(url);
	  	if(url!=""){
		  xmlHttp.onreadystatechange=areaChanged;
		  xmlHttp.open("GET",url,true);
		  xmlHttp.send(null);
	  }
	}
	
	function createXml(){
		var xmlhttpd;
		try{
			xmlhttpd= new ActiveXObject('msxml2.XMLHTTP');
		}catch(e){
			try{
				xmlhttpd=new ActiveXObject('Microsoft.XMLHTTP');
			}catch(e){
			 	try{
			 		xmlhttpd=new XMLHttpRequest();
				}catch(e){}
			}
		}
		return xmlhttpd;
	}
	
	//区域选择，ajax返回
	function areaChanged(){
		var provinceCode = new Array();
		var provinceValue = new Array();
	 	if (xmlHttp.readyState == 4&&xmlHttp.status == 200){
		 	var xmlDoc = xmlHttp.responseXML.documentElement;
		 	//var str=xmlhttp.responseText;
		 	if (xmlDoc == null) {
				return;
			}
			var flagYn = true;
			var until = xmlDoc.childNodes;
			for (var idx=0; idx < until.length; idx++) {
				var peer = xmlDoc.childNodes[idx];
				if(peer.tagName=='zhuanqu'){
					provinceCode[provinceCode.length] = peer.text;
				 	provinceValue[provinceValue.length] = peer.text;
				 	continue;
				 }
			}
			
			if(provinceCode.length>0){
				document.form1.emp_zhuanqqu.innerHTML="";
				document.form1.emp_zhuanqqu.options[0]=new Option("请选择","");
				for(var i=0;i<provinceCode.length;i++)
					document.form1.emp_zhuanqqu.options[i+1]=new Option(provinceValue[i],provinceCode[i]);
				document.form1.emp_zhuanqqu.selectedIndex  = 0;
			}else{
				document.form1.emp_zhuanqqu.innerHTML="";
				document.form1.emp_zhuanqqu.options[0]=new Option("请选择","");
			}
				 
		}
	}
	
	function save(){
		if(document.getElementById("emp_role").value==""){
			alert("角色不能为空，请选择！");
			return;
		}
		var role = document.getElementById("emp_role").value;
		if((role=='RTM'||role=='CTM')&&document.getElementById("emp_area_code").value==""){
			alert("区域不能为空，请选择！");
			return;
		}
		if(role!='2'&&document.getElementById("emp_login_pwd").value==""){
			alert("非普通人员 ，登录密码不能为空，请选择！");
			return;
		}
		if(role!='2'&&document.getElementById("aiwang").value==""){
			alert("非普通人员 ，登录账号不能为空，请选择！");
			return;
		}
		if(!checkPageValid()){
			return;
		}
		if(!emailCheck(document.getElementById("emp_mail").value)){
			alert("电子邮件格式不正确，请确认！");
			return;
		}
		
		var emp_yuangongsi_date = document.getElementById("emp_yuangongsi_date").value;
		var emp_huayi_date = document.getElementById("emp_huayi_date").value;
		var emp_hentong_end = document.getElementById("emp_hentong_end").value;
		if(emp_yuangongsi_date!=""){
			if(emp_huayi_date!=""&&emp_yuangongsi_date>emp_huayi_date){
				alert("原公司入职日期应该小于华谊葭信入职日期,请确认！");
				return;
			}
			if(emp_hentong_end!=""&&emp_yuangongsi_date>emp_hentong_end){
				alert("原公司入职日期应该小于合同截止日期,请确认！");
				return;
			}
		}
		if(!oLogin){
			alert("登录账号重复，请重新输入!");
			return;
		}
		document.form1.action="hr/updateEmpInfoDo.action";
		document.form1.submit();
    }
    function bank(){
		document.form1.action="hr/manageEmpList.action";
		document.form1.submit();
    }
    function fncChangge(obj,inputId){
    	var oIn = document.getElementsByName(inputId)[0];
    	if(obj.value=="有"){
    		var oIn = document.getElementsByName(inputId)[0];
    		var myDate=new Date();
    		oIn.value = myDate.getFullYear()+"-"+((myDate.getMonth()+1)<10?"0"+(myDate.getMonth()+1):(myDate.getMonth()+1))+"-"+(myDate.getDate()<10?"0"+myDate.getDate():myDate.getDate());  
    	}else{
    		oIn.value ="";
    	}      	
    	if("emp_picture_date"==inputId&&obj.value!="无"){
    		var oIn = document.getElementsByName(inputId)[0];
    		var myDate=new Date();
    		oIn.value = myDate.getFullYear()+"-"+((myDate.getMonth()+1)<10?"0"+(myDate.getMonth()+1):(myDate.getMonth()+1))+"-"+(myDate.getDate()<10?"0"+myDate.getDate():myDate.getDate());  
    	} 	
    }
    
    function ziliaosubmit(){
    	var part7 = document.getElementById("part7");
    	var osel = part7.getElementsByTagName("select");
    	
    	for(var i=0;i<osel.length;i++){
    		for(var j=0;j<osel[i].options.length;j++){
    			if(osel[i].options(j).text =="有"){
    				osel[i].selectedIndex  = j;
    				var name = osel[i].name.replace("_yn","_date")
    				fncChangge(osel[i],name);
    				break;
    			}
    		}
    	}
	}
	
	var objTr; 
    function checkLoginId(obj){
   		objTr = obj;
		if(obj.value==""||obj.value=="${empBean.aiwang}"){
			oLogin = true;
			return;
		}
    	
    	xmlHttp=createXml();
		if (xmlHttp==null) {
	    	alert ("您的浏览器不支持AJAX！");
	    	return;
	    }
	   
	    var url="hr/ajaxCheckLoginId.action?queryLoginId="+obj.value+"&sid="+Math.random();

	  	if(url!=""){
		  xmlHttp.onreadystatechange=looginIdChanged;
		  xmlHttp.open("GET",url,true);
		  xmlHttp.send(null);
	  }   	
    }
    
  function looginIdChanged(){
   	if (xmlHttp.readyState == 4&&xmlHttp.status == 200){
	 	var str=xmlHttp.responseText;
	 	if (str == "error") {
			alert("当前登录ID已经存在，请重新输入");
			oLogin = false;
			objTr.focus();
			return;
		}else{
		oLogin = true;
		}
   	}
   }
   function fncChangeItmall(){
    	var itmall = document.getElementById("itmall_city").value;
    	if(itmall!=''){
    		var oar = fullChar2halfChar(itmall).split(",");
    		document.getElementById("itmall_city_num").value = oar.length;
    	}
    }
    
    function fncChange3c(){
    	var itmall = document.getElementById("c3_city").value;
    	if(itmall!=''){
    		var oar = fullChar2halfChar(itmall).split(",");
    		document.getElementById("c3_city_num").value = oar.length;
    	}
    }
    
    //text的半角逗号 
    function fullChar2halfChar(str){   
		var result = '';   		  
		for (i=0 ; i<str.length; i++){    
			code = str.charCodeAt(i);//获取当前字符的unicode编码   
			if (code >= 65281 && code <= 65373){//在这个unicode编码范围中的是所有的英文字母已经各种字符   
				result += String.fromCharCode(str.charCodeAt(i) - 65248);//把全角字符的unicode编码转换为对应半角字符的unicode码   
			}else if (code == 12288){ //空格   
				result += String.fromCharCode(str.charCodeAt(i) - 12288 + 32);   
			}else {   
				result += str.charAt(i);   
			}   
		}   		 
		return result;   
	} 
</script>
<body class="ridgeBody">
<table align="center" width="100%"><tr><td align="center">
<form name="form1" method="post" action="hr/updateEmpInfoDo.action"  >
<input type="hidden" name="emp_id" value="${empBean.emp_id}"/>
<div id="tabs1" >
	<div id="part1" class="x-hide-display">
	<table class=datatable width="100%" cellpadding='0' cellspacing='0' border='1' bordercolordark='white' bordercolorlight='#BEBEBE'>
	    <tr>
	        <td height="25" colspan="4" valign="top" class="dataTitle"><br>人员信息资料</td>
	    </tr>	  
	    <tr>
	        <td height="22" with="25%" nowrap="nowrap" class="datatr1">大区：</td>
	        <td height="22" with="25%">
	        	<select class="selectwidth" name="emp_daqu" id="emp_daqu" onChange="selectArea(this.options[selectedIndex].value)"  >
		            <option value="" >请选择</option>
		            <c:forEach items="${daquList}" var="daqu">
						<option value="${daqu.commonCode}" <c:if test="${daqu.commonCode==empBean.emp_daqu}">selected</c:if> >${daqu.commonValue}</option>	
					</c:forEach>
		        </select>
			</td>
	        <td height="22" with="25%" nowrap="nowrap" class="datatr1">专区：</td>
	        <td height="22" with="25%">
		        <select class="selectwidth" name="emp_zhuanqqu" id="emp_zhuanqqu"   >
		            <option value="" >请选择</option>
		            <c:forEach items="${zhuanqquList}" var="zhuanqqu">
						<option value="${zhuanqqu.code}" <c:if test="${zhuanqqu.code==empBean.emp_zhuanqqu}">selected</c:if> >${zhuanqqu.code}</option>	
					</c:forEach>
		        </select>
		    </td>
	    </tr>
	       
	    <tr>
	        <td height="22" with="25%" nowrap="nowrap" class="datatr1"><span class="STYLE1">*</span>大区：</td>
	        <td height="22" with="25%">
		        <select class="selectwidth" name="emp_area_code" id="emp_area_code"  onChange="selectAreaPop(this.options[selectedIndex].value,this.options[selectedIndex].text,'emp_area')"  >
				<option value="" selected>请选择</option>
				<c:forEach items="${areaList}" var="area">
					<option value="${area.areaCode}" <c:if test="${area.areaCode==empBean.emp_area_code}">selected</c:if>>${area.areaValue}</option>	
				</c:forEach>
			</select>
		        <input type="hidden" name="emp_area_value" value="${empBean.emp_area_value}" />
			</td>
	        <td height="22" with="25%" nowrap="nowrap" class="datatr1"><span class="STYLE1">*</span>专区：</td>
	        <td height="22" with="25%">
		        <select class="selectwidth" name="emp_province_code" id="emp_province_code" onChange="selectAreaPop(this.options[selectedIndex].value,this.options[selectedIndex].text,'emp_province')"  >
				<option value="" selected>请选择</option>
				<c:forEach items="${provinceList}" var="province">
					<option value="${province.provinceCode}" <c:if test="${province.provinceCode==empBean.emp_province_code}">selected</c:if>>${province.provinceName}</option>	
				</c:forEach>
			</select>
		        <input type="hidden" name="emp_province_value" value="${empBean.emp_province_value}" />
		    </td>
	    </tr>
        <tr>
           	<td height="22" with="25%" nowrap="nowrap" class="datatr1"><span class="STYLE1">*</span>城市：</td>
        	<td height="22" with="25%">
        		<select class="selectwidth" name="emp_city_code" id="emp_city_code"  onChange="selectAreaPop(this.options[selectedIndex].value,this.options[selectedIndex].text,'emp_city')">
				<option value="" selected>请选择</option>
				<c:forEach items="${cityList}" var="city">
					<option value="${city.cityCode}" <c:if test="${city.cityCode==empBean.emp_city_code}">selected</c:if>>${city.cityName}</option>	
				</c:forEach>
			</select>
            	<input type="hidden" name="emp_city_value" value="${empBean.emp_city_value}" />
            </td>
      		<td height="22" with="25%" nowrap="nowrap" class="datatr1"><span class="STYLE1">*</span>角色：</td>
         	<td height="22" with="25%">
         		<select class="selectwidth" name="emp_role" id="emp_role"  >
           	 		<option value="" selected>请选择</option>
           	 		<c:forEach items="${roleList}" var="role">
						<option value="${role.commonCode}" <c:if test="${role.commonCode==empBean.emp_role}">selected</c:if> >${role.commonValue}</option>	
					</c:forEach>
           	 	</select>
           	 </td>
        </tr>
        <tr>        
        	<td height="22" nowrap="nowrap" class="datatr1"><span class="STYLE1">*</span>员工姓名：</td>
        	<td height="22" >
        		<input name="emp_name"  type="text" class="input" value="${empBean.emp_name}" requiredValue="true"  checkItem="员工姓名" />
        	</td>
        	<td height="22" nowrap="nowrap" class="datatr1"><span class="STYLE1">*</span>员工编号：</td>
        	<td height="22" >
        		<input name="emp_code"  type="text" class="input" value="${empBean.emp_code}" requiredValue="true"  checkItem="员工编号"/>
        	</td>
      </tr>
      <tr>        
        <td height="22" nowrap="nowrap" class="datatr1"><span class="STYLE1">*</span>登录账号：</td>
        <td height="22" >
        	<input name="aiwang"  type="text" class="input" value="${empBean.aiwang}" requiredValue="true" checkType="charnum" checkItem="登录账号" onChange="checkLoginId(this);" />
        </td>
        <td height="22" nowrap="nowrap" class="datatr1">登录密码：</td>
        <td height="22" >
        	<input name="emp_login_pwd"  type="text" class="input" value="${empBean.emp_login_pwd}"  checkType="charnum" checkItem="登录密码" />
        </td>
      </tr> 
       <tr>         
        <td height="22" nowrap="nowrap" class="datatr1">事业部：</td>
        <td height="22" nowrap >${empBean.emp_shiyebu}
                <input name="emp_shiyebu"  type="hidden" class="input" value="${empBean.emp_shiyebu}" readonly /> 
           </td>
        <td height="22" nowrap="nowrap" class="datatr1">RTM/HQ Trainer：</td>
        <td height="22" nowrap>
        	<input name="emp_rtm_code"  type="hidden" class="input" value="${empBean.emp_rtm_code}" readonly /> 
        	<input name="emp_rtm_name"  type="text" class="input"  value="${empBean.emp_rtm_name}" readonly /> 
        	<span style="color:red;cursor:hand;textDecoration:underline" onclick="window.open('rtmListPop.action?emp_role=RTM&shiyebu=${empBean.emp_shiyebu}','RTM及HQTrainer')">查询</span> 
       </td>  
      </tr>
       <tr>       
       <td height="22" nowrap="nowrap" class="datatr1">级别：</td>
        <td height="22" ><input name="emp_level"  type="text" class="input" value="${empBean.emp_level}" /></td>
        <td height="22" nowrap="nowrap" class="datatr1">级别工资：</td>
        <td height="22" ><input name="emp_level_salary"  type="text" class="input" value="${empBean.emp_level_salary}" /></td> 
      </tr>
       <tr>
        <td height="22" nowrap="nowrap" class="datatr1">店面：</td>
        <td height="22" ><input name="shop_name"  type="text" class="input" value="${empBean.shop_name}" readonly/></td>
        <td height="22" nowrap="nowrap" class="datatr1">店面编码：</td>
        <td height="22" nowrap>
        	<input name="shop_code"  type="text" class="input" value="${empBean.shop_code}" readonly /> 
        	<span style="color:red;cursor:hand;textDecoration:underline" onclick="window.open('shopListPop.action','选择店面')">查询</span> 
		  </td>         	
      </tr>
      <tr>         
        <td height="22" nowrap="nowrap" class="datatr1">职位：</td>
        <td height="22" ><input name="emp_job"  type="text" class="input" value="${empBean.emp_job}" /></td>
        <td height="22" nowrap="nowrap" class="datatr1">客户别：</td>
        <td height="22" ><input name="emp_kehu_type"  type="text" class="input" value="${empBean.emp_kehu_type}" /></td>
	</tr>
     
      <tr>
        <td height="22"  class="datatr1" >性别：</td>
        <td width="177" height="22" >
        	<select class="selectwidth" name="emp_sex">
	          	<option value="男" <c:if test="${'男'==empBean.emp_sex}">selected</c:if>>男</option>
	         	<option value="女"  <c:if test="${'女'==empBean.emp_sex}">selected</c:if>>女</option>
        	</select>
       	</td>
        <td  height="22"   class="datatr1">身高(cm)：</td>
        <td width="177" height="22" >
        	<input name="emp_height"  type="text" class="input" value="${empBean.emp_height}" checkType="number" checkItem="身高" maxlength="30" />
        </td>
      </tr>
      <tr>
        <td height="22" nowrap="nowrap" class="datatr1">身份证号：</td>
        <td height="22" ><input name="emp_idcard"  type="text" class="input" value="${empBean.emp_idcard}" maxlength="18" ></td>
        <td height="22" nowrap="nowrap" class="datatr1">出生日期：</td>
       	<td> <input  name="emp_birthdate" value="${empBean.emp_birthdate}"   type="text" class="input"  /></td>
      </tr>
      <tr>
        <td height="22" nowrap="nowrap" class="datatr1">学历：</td>
        <td height="22" >
        <select class="selectwidth" name="emp_hukou_type">
	          <option value="" selected="selected" >请选择</option>
	          <c:forEach items="${xueliList}" var="xueli">
				<option <c:if test="${xueli.commonValue==empBean.emp_xueli}">selected</c:if> >${xueli.commonValue}</option>	
			  </c:forEach>
        	</select>
     	</td>
        <td height="22" nowrap="nowrap" class="datatr1">手机：</td>
        <td height="22" >
        	<input name="emp_phone_mobile"  type="text" value="${empBean.emp_phone_mobile}" class="input" maxlength="30" checkType="phone" checkItem="手机">
        </td>
      </tr>
          <tr>        
        <td height="22" nowrap="nowrap" class="datatr1">固话：</td>
        <td height="22" >
        	<input name="emp_phone_native"  type="text" value="${empBean.emp_phone_native}" class="input" maxlength="30" checkType="telepho" checkItem="固话">
        </td>
        <td height="22" nowrap="nowrap" class="datatr1">E-mail：</td>
        <td height="22" ><input name="emp_mail" id="emp_mail" type="text" value="${empBean.emp_mail}" class="input"   /></td>  
      </tr>      
       <tr>        
        <td height="22" nowrap="nowrap" class="datatr1">负责ITMALL城市：</td>
        <td height="22" >
        	<input name="itmall_city" id="itmall_city" type="text" class="input" maxlength="30" value="${empBean.itmall_city}" onChange="fncChangeItmall()">
        </td>
        <td height="22" nowrap="nowrap" class="datatr1">负责ITMALL城市数量：</td>
        <td height="22" ><input name="itmall_city_num" id ="emp_mail" type="text" class="input" value="${empBean.itmall_city_num}"  readOnly /></td>  
      </tr>   
      <tr>        
        <td height="22" nowrap="nowrap" class="datatr1">负责3C城市：</td>
        <td height="22" >
        	<input name="c3_city"  id="c3_city" type="text" class="input" maxlength="30" value="${empBean.c3_city}"  onChange="fncChange3c()">
        </td>
        <td height="22" nowrap="nowrap" class="datatr1">负责3C城市数量：</td>
        <td height="22" ><input name="c3_city_num" id ="emp_mail" type="text" class="input" value="${empBean.c3_city_num}"   readOnly /></td>  
      </tr>      
      <tr>
        <td height="22" nowrap="nowrap" class="datatr1">户口性质：</td>
        <td height="22" >
        	<select class="selectwidth" name="emp_hukou_type">
	          <option value="" selected="selected" >请选择</option>
	          <c:forEach items="${hukouList}" var="hukou">
				<option <c:if test="${hukou.commonValue==empBean.emp_hukou_type}">selected</c:if> >${hukou.commonValue}</option>	
			  </c:forEach>
        	</select>
        </td>
        <td height="22" nowrap="nowrap" class="datatr1">民族：</td> 
        <td height="22" >
        	<input name="emp_minzu" value="${empBean.emp_minzu}" type="text" class="input" maxlength="30" />
        </td> 
       </tr>
       <tr>
        <td height="22" nowrap="nowrap" class="datatr1">户口所在地：</td>
        <td height="22"  colspan="3"><input name="emp_hukou_address"  type="text"  value="${empBean.emp_hukou_address}" size="60" maxlength="500" ></td>         
      </tr>
      <tr>
        <td height="22" nowrap="nowrap" class="datatr1">籍贯：</td> 
        <td height="22" colspan="3"><input name="emp_birth_place" value="${empBean.emp_birth_place}" type="text"  size="60" maxlength="500" ></td>
      </tr>
       <tr>
        <td height="22" nowrap="nowrap" class="datatr1">居住地详细地址：</td>
        <td height="22"  colspan="3"><input name="emp_juzhudi" value="${empBean.emp_juzhudi}"  type="text"  size="60" maxlength="500" ></td>         
      </tr></table>
	</div>
	<div id="part3" class="x-hide-display">
	<table  class=datatable width="100%" cellpadding='0' cellspacing='0' border='1' bordercolordark='white' bordercolorlight='#BEBEBE'>
	  <tr>
	       <td height="22" colspan="5" valign="top" class="dataTitle"><br>合同信息</td>
	     </tr>
	  <tr>
	       <td  height="22" nowrap="nowrap" class="datatr1">原公司入职日期：</td>
	       <td	height="22"> <input  name="emp_yuangongsi_date" id="emp_yuangongsi_date"  value="${empBean.emp_yuangongsi_date}" style="cursor:hand" onclick="setday(this)" readOnly type="text" class="input" /></td>
	       <td  height="22" nowrap="nowrap" class="datatr1">是否是试用期：</td>
	       <td	height="22">
			<select class="selectwidth" name="emp_shiyong_yn" >
              <option <c:if test="${'是'==empBean.emp_shiyong_yn}">selected</c:if>  value="是">是</option>
              <option <c:if test="${'否'==empBean.emp_shiyong_yn}">selected</c:if> value="否">否</option>
         	 </select>
			</td>
	     </tr>
	  <tr>
	  	 <td  height="22" nowrap="nowrap" class="datatr1">华谊葭信入职日期：</td>
		 <td  height="22"> <input  name="emp_huayi_date" id="emp_huayi_date"  value="${empBean.emp_huayi_date}"  type="text" style="cursor:hand" onclick="setday(this)" readOnly  class="input" /></td>
	      <td height="22" nowrap="nowrap" class="datatr1">转正日期：</td>
	    <td	height="22"> <input  name="emp_zhuanzheng_date" value="${empBean.emp_zhuanzheng_date}" style="cursor:hand" onclick="setday(this)" readOnly type="text" class="input" /></td>
	  </tr>
	  <tr>
	  	<td height="22" nowrap="nowrap" class="datatr1">合同截止日期：</td>
	  	<td	height="22"> <input  name="emp_hentong_end" id="emp_hentong_end" value="${empBean.emp_hentong_end}" style="cursor:hand" onclick="setday(this)" readOnly type="text" class="input" /></td>
	    <td height="22" class="datatr1">合同类型：</td>
	    <td	height="22">
	    	<select class="selectwidth" name="emp_hetong_type">
	          <option value="" selected="selected" >请选择</option>
	          <c:forEach items="${hetongList}" var="hukouType">
				<option <c:if test="${hukouType.commonValue==empBean.emp_hetong_type}">selected</c:if>>${hukouType.commonValue}</option>	
			  </c:forEach>
        	</select></td>
	  </tr>
	  <tr>
	  	<td height="22" nowrap="nowrap" class="datatr1">升职日期：</td>
	  	<td	height="22"> <input  name="emp_shengzhi_date"  value="${empBean.emp_shengzhi_date}" style="cursor:hand" onclick="setday(this)" readOnly type="text" class="input" /></td>
	  		<td  height="22" nowrap="nowrap" class="datatr1">&nbsp;</td>
		   <td	height="22">&nbsp;
		   </td> 
	  </tr>
	</table>
	</div>
	<div id="part4" class="x-hide-display">
	<table class=datatable width="100%" cellpadding='0' cellspacing='0' border='1' bordercolorDark='white' bordercolorLight='#BEBEBE'>
	   <tr>
	        <td height="20" colspan="8" valign="top" class="dataTitle">社保信息<br></td>
	      </tr>
	   <tr>
	        <td height="22" nowrap="nowrap" class="datatr1">参保城市：</td>
	        <td height="22" ><input name="emp_canbao_city"  type="text" value="${empBean.emp_canbao_city}" class="input" maxlength="30"></td>
	        <td height="22" nowrap="nowrap" class="datatr1">参保情况：</td>
	        <td height="22" >
	        	<select class="selectwidth" name="emp_canbao_qingkuang">
	            <option <c:if test="${'新参保'==empBean.emp_canbao_qingkuang}">selected</c:if> value="新参保">新参保</option>
	            <option <c:if test="${'曾参保'==empBean.emp_canbao_qingkuang}">selected</c:if> value="曾参保">曾参保</option>
	           </select>
	        </td>
	      </tr>
	   <tr>
			<td height="22" nowrap="nowrap" class="datatr1">参保日期：</td>
	        <td> <input  name="emp_canbao_date" value="${empBean.emp_canbao_date}" style="cursor:hand" onclick="setday(this)" readOnly  type="text" class="input" /></td>
	   		<td height="22" nowrap="nowrap" class="datatr1">参保基数：</td>
	        <td> <input  name="emp_canbao_jishu" value="${empBean.emp_canbao_jishu}"  type="text" class="input" /></td>
	  </tr>
	  <tr>
		 <td height="22" nowrap="nowrap" class="datatr1">到期未参保原因：</td>
	     <td height="22" >
	        <input  name="emp_weicanbao_yuanyin" value="${empBean.emp_weicanbao_yuanyin}"   type="text" class="input" />
	     </td>
		 <td height="22" nowrap="nowrap" class="datatr1">&nbsp;</td>
	     <td> &nbsp;</td>
	  </tr>
	</table>
	</div>
    <div id="part5" class="x-hide-display">
	<table  class=datatable width="100%" cellpadding='0' cellspacing='0' border='1' bordercolordark='white' bordercolorlight='#BEBEBE'>
	     <tr>
           <td height="20" colspan="4" valign="top" class="dataTitle">银行账户信息</td>
         </tr>
	     <tr>
	       <td  height="22" nowrap="nowrap" class="datatr1">开卡银行：</td>
           <td valign="top">        
	          <select class="selectwidth" name="emp_bank">
	          	<option value="">选择银行</option>
	          	<c:forEach items="${bankList}" var="bank">
					<option <c:if test="${bank.commonValue==empBean.emp_bank}">selected</c:if> >${bank.commonValue}</option>	
				</c:forEach>
	          </select>
          </td>
        <td height="22" nowrap="nowrap" class="datatr1">开卡城市：</td>
        <td height="22" ><input name="emp_bank_city" value="${empBean.emp_bank_city}"  type="text" class="input" size="10"   /></td>        
      </tr>
	   <tr>
        <td height="22" nowrap="nowrap" class="datatr1">银行帐号：</td>
        <td height="22" ><input name="emp_bank_id"  type="text" value="${empBean.emp_bank_id}"  class="input" size="10"   /></td>
        <td  height="22" nowrap="nowrap" class="datatr1">&nbsp;</td>
        <td height="22" >&nbsp;</td>         
      </tr>
	</table>
	</div>
	<div id="part7" class="x-hide-display">
	  <table  class=datatable width="100%" cellpadding='0' cellspacing='0' border='1' bordercolordark='white' bordercolorlight='#BEBEBE'>
        <tr>
          <td height="20" colspan="4" valign="top" class="dataTitle">资料情况</td>
        </tr>
        <tr >
          <td  height="22" nowrap="nowrap" class="datatr1">履&nbsp;历&nbsp;表：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_luli_yn" onChange="fncChangge(this,'emp_luli_date');">
              <option <c:if test="${'无'==empBean.emp_luli_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_luli_yn}">selected</c:if>  value="有">有</option>
          </select></td>
          <td  height="22" nowrap="nowrap" class="datatr1">履历表上交时间：</td>
          <td width="177" height="22" >
            <input type="text" name="emp_luli_date" value="${empBean.emp_luli_date}"  class="input"></td>
        </tr>
        <tr >
            <td  height="22" nowrap="nowrap" class="datatr1">离职证明：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_lizhizhengming_yn" onChange="fncChangge(this,'emp_lizhizhengming_date');">
              <option <c:if test="${'无需上交'==empBean.emp_lizhizhengming_yn}">selected</c:if> value="无需上交">无需上交</option>
              <option <c:if test="${'无'==empBean.emp_lizhizhengming_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_lizhizhengming_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td  height="22" nowrap="nowrap" class="datatr1">离职证明上交时间：</td>
          <td width="177" height="22" ><input type="text"  name="emp_lizhizhengming_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_lizhizhengming_date}" class="input"></td>
        </tr>
		<tr >
            <td  height="22" nowrap="nowrap" class="datatr1">入司确认函：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_rusi_yn" onChange="fncChangge(this,'emp_rusi_date');">
              <option <c:if test="${'无需上交'==empBean.emp_rusi_yn}">selected</c:if> value="无需上交">无需上交</option>
              <option <c:if test="${'无'==empBean.emp_rusi_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_rusi_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td  height="22" nowrap="nowrap" class="datatr1">入司确认函上交时间：</td>
          <td width="177" height="22" ><input type="text" name="emp_rusi_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_rusi_date}" class="input"></td>
        </tr>
        <tr>
          <td  height="22" nowrap="nowrap" class="datatr1">员工手册确认函：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_shouce_yn" onChange="fncChangge(this,'emp_shouce_date');">
              <option <c:if test="${'无需上交'==empBean.emp_shouce_yn}">selected</c:if> value="无需上交">无需上交</option>
              <option <c:if test="${'无'==empBean.emp_shouce_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_shouce_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td height="22" nowrap="nowrap" class="datatr1">员工手册确认函上交时间：</td>
          <td height="22" ><input type="text" name="emp_shouce_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_shouce_date}" class="input"></td>
        </tr>
		
		<tr>
          <td height="22" nowrap="nowrap" class="datatr1">身份证复印件：</td>
          <td height="22" ><select class="selectwidth" name="emp_idcopy_yn" onChange="fncChangge(this,'emp_idcopy_date');">
              <option <c:if test="${'无'==empBean.emp_idcopy_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_idcopy_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td height="22" nowrap="nowrap" class="datatr1">身份证复印件上交时间：</td>
          <td height="22" ><input type="text" name="emp_idcopy_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_idcopy_date}" class="input"></td>
        </tr>
		
        <tr>
          <td  height="22" nowrap="nowrap" class="datatr1">户口本复印件：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_hukoucopy_yn" onChange="fncChangge(this,'emp_hukoucopy_date');">
              <option <c:if test="${'无'==empBean.emp_hukoucopy_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_hukoucopy_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td  height="22" nowrap="nowrap" class="datatr1">户口本复印件上交时间：</td>
          <td width="177" height="22" ><input type="text" name="emp_hukoucopy_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_hukoucopy_date}" class="input"></td>
        </tr>
		
		<tr>
          <td  height="22" nowrap="nowrap" class="datatr1">户口本复印件(性质页)：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_hukoutypecopy_yn" onChange="fncChangge(this,'emp_hukoutypecopy_date');">
              <option <c:if test="${'无'==empBean.emp_hukoutypecopy_yn}">selected</c:if> value="无" >无</option>
              <option <c:if test="${'有'==empBean.emp_hukoutypecopy_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td  height="22" nowrap="nowrap" class="datatr1">户口本复印件(性质页)上交时间：</td>
          <td width="177" height="22" ><input type="text" name="emp_hukoutypecopy_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_hukoutypecopy_date}" class="input"></td>
        </tr>
		
        <tr>
          <td  height="22" nowrap="nowrap" class="datatr1">劳动合同：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_hetong_yn" onChange="fncChangge(this,'emp_hetong_date');">
              <option <c:if test="${'无需上交'==empBean.emp_hetong_yn}">selected</c:if> value="无需上交">无需上交</option>
              <option <c:if test="${'无'==empBean.emp_hetong_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_hetong_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td height="22" nowrap="nowrap" class="datatr1">劳动合同上交时间：</td>
          <td height="22" ><input type="text" name="emp_hetong_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_hetong_date}" class="input"></td>
        </tr>
		
		<tr>
          <td height="22" nowrap="nowrap" class="datatr1">一寸彩照：</td>
          <td height="22" ><select class="selectwidth" name="emp_picture_yn" onChange="fncChangge(this,'emp_picture_date');" >
              <option <c:if test="${'无'==empBean.emp_picture_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'1'==empBean.emp_picture_yn}">selected</c:if> value="1">1</option>
              <option <c:if test="${'2'==empBean.emp_picture_yn}">selected</c:if> value="2">2</option>
              <option <c:if test="${'3'==empBean.emp_picture_yn}">selected</c:if> value="3">3</option>
              <option <c:if test="${'4'==empBean.emp_picture_yn}">selected</c:if> value="4">4</option>
              <option <c:if test="${'5'==empBean.emp_picture_yn}">selected</c:if> value="5">5</option>
          </select></td>
          <td height="22" nowrap="nowrap" class="datatr1">一寸彩照上交时间：</td>
          <td height="22" ><input type="text" name="emp_picture_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_picture_date}" class="input"></td>
        </tr>
		 
        <tr>
          <td  height="22" nowrap="nowrap" class="datatr1">体检报告：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_tijian_yn" onChange="fncChangge(this,'emp_tijian_date');">
              <option <c:if test="${'无'==empBean.emp_tijian_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_tijian_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td  height="22" nowrap="nowrap" class="datatr1">体检报告上交时间：</td>
          <td width="177" height="22" ><input type="text" name="emp_tijian_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_tijian_date}" class="input"></td>
        </tr>
        <tr>
          <td  height="22" nowrap="nowrap" class="datatr1">孕检报告：</td>
          <td width="177" height="22" ><select class="selectwidth" name="emp_yunjian_yn" onChange="fncChangge(this,'emp_yunjian_date');">
              <option <c:if test="${'无'==empBean.emp_yunjian_yn}">selected</c:if> value="无">无</option>
              <option <c:if test="${'有'==empBean.emp_yunjian_yn}">selected</c:if> value="有">有</option>
          </select></td>
          <td  height="22" nowrap="nowrap" class="datatr1">孕检报告上交时间：</td>
          <td width="177" height="22" ><input type="text" name="emp_yunjian_date" style="cursor:hand" onclick="setday(this)" readOnly value="${empBean.emp_yunjian_date}" class="input"></td>
        </tr>
		 <tr>        
	        <td height="22" nowrap="nowrap" class="datatr1">不全的资料：</td>
	        <td height="22"  colspan="4"><input name="emp_buquan"  type="text" value="${empBean.emp_buquan}"  size="60" maxlength="500"></td> 
        </tr> 
        <tr>
			<td height="22" nowrap="nowrap" class="datatr1"  align="right"> 备注：</td>
			<td height="22"  colspan="8"  ><textarea name="emp_ziliao_bakup" cols="65" rows="5" >${empBean.emp_ziliao_bakup}</textarea></td>
		</tr>
        <tr>
        <td height="20" colspan="4" valign="top" class="dataTitle"><input type="button" value="资料全部提交" onClick="ziliaosubmit()" /></td>        
      </tr>
      </table>
	</div>
	
</div>
<script type="text/javascript">
Ext.onReady(function(){
    // basic tabs 1, built from existing content
    var tabs = new Ext.TabPanel({
        renderTo: 'tabs1',
        width:700,
        activeTab: 0,
        frame:true,
        defaults:{autoHeight: true},
        items:[
            {contentEl:'part1', title: '人员基本信息'},
            {contentEl:'part3', title: '合同信息'},
            {contentEl:'part4', title: '社保信息'},
            {contentEl:'part5', title: '银行账户信息'},
            {contentEl:'part7', title: '资料提交情况'}
        ]
    });   
});
</script>
<table width="700" bgcolor="#96BDDA">
<tr>
<td height="20" colspan="4" valign="top" class="dataTitle">
	<input type="button"  onClick="save()" value="提交">
	<input type="button"  onClick="bank()" value="返回">
</td>
</tr> 
</table>
<input type="hidden" name="flag">
</form>
</td></tr></table>
</body>
</html> 

